<template>
<div id="app">
  <div id="app-main">
    <router-view></router-view>
  </div>
 <Tarbar v-show="appl"/> 
  
   <!-- <div v-else-if="appll">
     <Tarbar />
   </div> -->
 </div>
 </template>
<script>

import Tarbar from './components/Tarbar'
export default {
  name: 'App',
  components:{
    Tarbar
  },
  data(){
    return {
      appl:true
    }
  },
  
 watch:{
   '$route':'isShow'
 },
  methods:{
  
     isShow () {
       
      // this.$route.fullPath ==='/soul' ? this.appl=false : this.appl=true
      // this.$route.fullPath ==='/login' ? this.appl=false : this.appl=true
      // this.$route.fullPath ==='/cart' ? this.appl=false : this.appl=true
      
       
      if(this.$route.path==='/soul'){
        this.appl=false 
      }else if(this.$route.fullPath ==='/login' ){
        this.appl=false 
      }else if( this.$route.fullPath ==='/cart'){
          this.appl=false 
      }else if(this.$route.meta.hell === false){
        console.log(this.$route.meta.hell)
          this.appl=false 
      }else{
        this.appl=true
      }
     
    }
  },
  mounted () {
     this.isShow ()
   
  }
 
}
</script>


<style  lang="scss">
.router-link-exact-active{
  color: #4db6ac;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
// HTML5 display-role reset for older browsers
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
html,
body,
#app{
 height: 100%;
  overflow: hidden;
}
#app{
    display: flex;
    flex-direction: column;
    &-main{
      flex: 1;
      overflow-x: hidden;
    }
  
 }
 #app-tarbar-list{
      height: 52px;
      border-top:1px solid #9e9e9e; 
      display: flex;
      justify-content: space-around;
     }
</style>
